package behavior.mediator.impl;

import behavior.mediator.Mediator;
import behavior.mediator.Person;

/**
 * 租客租房
 * @author thinkpad
 *
 */
public class Tenant extends Person {

	public Tenant(String name, Mediator mediator) {
		super(name, mediator);
	}

	@Override
	public String constact(String message) {
		return mediator.constact(message, this);
	}

	@Override
	public String getMessage(String message) {
		return "租客" + name +"获得来自中介转告的信息：" + message;
	}

}
